class Exp{
	public static void main(String[] felight) {
		int a=0,b=9;
		String str1="felight";
		
		try{
			int z=b/a;
		}

		catch(ArithmeticException exc){
			System.out.println("divide by zero error");

			try{
				int [] d= new int[5];
				int s=d[7];
			}

			catch(ArrayIndexOutOfBoundsException ex){
			System.out.println(ex);
			ex.printStackTrace();
		}
	
		
		}

		
		finally{
			System.out.println("clean up memory");
		}
	}
}